package modler

import "gorm.io/gorm"

/////////用户信息表///////

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)" json:"username"`
	Password string `gorm:"type:varchar(50)" json:"password"`
}
type Cat struct {
	gorm.Model
	Title   string `gorm:"type:varchar(50)" json:"title"`
	Content string `gorm:"type:varchar(50)" json:"content"`
	Img     string `gorm:"type:varchar(50)" json:"img"`
}

////////汽车订单表///////////

type Car struct {
	gorm.Model
	CarName   string `gorm:"type:varchar(50)"` //汽车名称
	CarCode   string `gorm:"type:varchar(50)"` //汽车产地
	CarPrince string `gorm:"type:varchar(50)"` //汽车价格
}
type CarOrder struct {
	gorm.Model
	CarOrderName   string `gorm:"type:varchar(50)"` //发货地
	CarOrderPrince string `gorm:"type:varchar(50)"` //目的地
	Cid            int    `gorm:"type:int"`         //汽车id
}
type CarOrderList struct {
	OrderId        int    `gorm:"type:int"`
	CarName        string `gorm:"type:varchar(50)"` //汽车名称
	CarCode        string `gorm:"type:varchar(50)"` //汽车产地
	CarPrince      string `gorm:"type:varchar(50)"` //汽车价格
	CarOrderName   string `gorm:"type:varchar(50)"` //发货地
	CarOrderPrince string `gorm:"type:varchar(50)"` //目的地
}
